package com.ninetaildemonfox.zdl.ninetaildemonfox.base;

import android.app.Application;
import android.content.Context;

import com.orhanobut.logger.AndroidLogAdapter;
import com.orhanobut.logger.Logger;

/**
 * @author Mr.xiao
 */
public class BaseApplication extends Application {

    private static BaseApplication instance;
    public static Context applicationContext;

    public static BaseApplication getInstance() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        applicationContext = this;
        Logger.addLogAdapter(new AndroidLogAdapter());
//        Logger.clearLogAdapters();//清楚日志适配器
    }

}
